package operation;

import book.BookLise;

/*
     ShowOperation类：用于实现图书的显示
                     通过遍历书架来显示各种信息
*/
public class ShowOperation implements IOperation {

    //重写接口标准方法 work
    @Override
    public void work(BookLise bookLise) {
        System.out.println("显示图书");

        //遍历书架了显示
        for (int i = 0; i < bookLise.getNowSize(); i++) {
            System.out.println(bookLise.getBooks(i));
        }
    }
}
